package com.likeycy.my;

/**
 * @ClassName: Student
 * @Description: 学生实体类，用于测试
 * @Author: sodagreen
 * @Date: 2021/3/27 18:37
 * @Version: 1.0
 */
public class Student implements Comparable<Student>{

    public int score;
    public int age;

    public Student(int score, int age) {
        this.score = score;
        this.age = age;
    }

    @Override
    public int compareTo(Student o) {
        return age - o.age;
    }
}
